-
-
Notifications
You must be signed in to change notification settings - Fork 26.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support scss absolute path resolution for url() #7937
Conversation
... build error (Cannot find module '@babel/helper-create-regexp-features-plugin') seems to be unrelated with the change in this PR. |
Yes, it's not related. Build is broken for the last 24 hours |
@skrzepij thanks for approving the PR! |
any update on this? We can't run CI ever since this issue occurred as we need this fix in order for CI to work properly |
@atlanteh Can you please rebase and push up again - the CI should work now. |
@mrmckeb All passed :) |
I'm OK with this change, @ianschmitz or @iansu - any thoughts? |
@mrmckeb @ianschmitz @iansu |
Any update? |
?? |
Can this PR be merged please? |
@skrzepij @mrmckeb @ianschmitz @iansu |
I've tagged this for 3.4 so someone should review and merge it before that release. Sorry for the delay, a lot of the team are only returning after Christmas break. |
Thanks! |
Can you guys make sure this gets into next release? We really need this fix, and we've been working with this fix locally for 3 months now and it works great |
Why is this moved to milestone 3.6? This is a very small change. This PR is waiting for almost 6 months now. Please merge it 🙏 |
+1 Please get this merged. |
Need this fix merged ASAP, please. |
I'm really sorry this one slipped through. We had a quick chat and we think it's good to go, but we'd like to see a quick test added if that's OK @atlanteh? |
Adding resolve-url-loader broke all apps using scss with centralized assets folder and all url(./assets/*.png) broke (#7023). This change allows apps to use url(/assets/*.png) and it would map to src/assets/*.png
@mrmckeb I added a test, though I see master is currently red, so my tests will fail as well. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@atlanteh The SVG seems odd to me and isn't loading - can you use the logo from our templates?
Or just use a minimal SVG that's just a box? Otherwise I this looks good.
@mrmckeb This is the logo from the templates.. What do you mean by "It isn't loading"? Are you running the tests locally and you can see the results? If so, how? |
Sorry @atlanteh, I don't know what I did - it's fine, you're right. Hope you're having a great weekend, I'll get this merged in very shortly. |
* Support scss absolute path resolution for url() Adding resolve-url-loader broke all apps using scss with centralized assets folder and all url(./assets/*.png) broke (facebook#7023). This change allows apps to use url(/assets/*.png) and it would map to src/assets/*.png * test: Add global scss assets test
Adding resolve-url-loader broke all apps using scss with centralized assets folder and all
url(./assets/*.png)
broke (#7023)This change allows apps to use
url(/assets/*.png)
and it would map tosrc/assets/*.png
I tested this on my app which has an images directory and after upgrading to CRA 3.2.0 (from 2.1.2) it failed. After reading resolve-url-loader I added this option and changed the path to absolute
(/assets/*.png)
and everything started working again